package com.ruoyi.zhongkao.service.impl;

import java.util.Collections;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zhongkao.mapper.ZkGraduationSchoolMapper;
import com.ruoyi.zhongkao.domain.ZkGraduationSchool;
import com.ruoyi.zhongkao.service.IZkGraduationSchoolService;

/**
 * 毕业学校Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-04
 */
@Service
public class ZkGraduationSchoolServiceImpl implements IZkGraduationSchoolService 
{
    @Autowired
    private ZkGraduationSchoolMapper zkGraduationSchoolMapper;

    @Override
    public List<ZkGraduationSchool> selectZkGraduationSchoolAll() {
        return zkGraduationSchoolMapper.selectZkGraduationSchoolAll();
    }

    /**
     * 查询毕业学校
     * 
     * @param id 毕业学校主键
     * @return 毕业学校
     */
    @Override
    public ZkGraduationSchool selectZkGraduationSchoolById(Long id)
    {
        return zkGraduationSchoolMapper.selectZkGraduationSchoolById(id);
    }

    /**
     * 查询毕业学校列表
     * 
     * @param zkGraduationSchool 毕业学校
     * @return 毕业学校
     */
    @Override
    public List<ZkGraduationSchool> selectZkGraduationSchoolList(ZkGraduationSchool zkGraduationSchool)
    {
        return zkGraduationSchoolMapper.selectZkGraduationSchoolList(zkGraduationSchool);
    }

    /**
     * 新增毕业学校
     * 
     * @param zkGraduationSchool 毕业学校
     * @return 结果
     */
    @Override
    public int insertZkGraduationSchool(ZkGraduationSchool zkGraduationSchool)
    {
        return zkGraduationSchoolMapper.insertZkGraduationSchool(zkGraduationSchool);
    }

    /**
     * 修改毕业学校
     * 
     * @param zkGraduationSchool 毕业学校
     * @return 结果
     */
    @Override
    public int updateZkGraduationSchool(ZkGraduationSchool zkGraduationSchool)
    {
        return zkGraduationSchoolMapper.updateZkGraduationSchool(zkGraduationSchool);
    }

    /**
     * 批量删除毕业学校
     * 
     * @param ids 需要删除的毕业学校主键
     * @return 结果
     */
    @Override
    public int deleteZkGraduationSchoolByIds(Long[] ids)
    {
        return zkGraduationSchoolMapper.deleteZkGraduationSchoolByIds(ids);
    }

    /**
     * 删除毕业学校信息
     * 
     * @param id 毕业学校主键
     * @return 结果
     */
    @Override
    public int deleteZkGraduationSchoolById(Long id)
    {
        return zkGraduationSchoolMapper.deleteZkGraduationSchoolById(id);
    }

    @Override
    public ZkGraduationSchool selectZkGraduationSchoolByCode(String code) {
        return zkGraduationSchoolMapper.selectZkGraduationSchoolByCode(code);
    }
}
